package com.tanhua.es.service;

import com.tanhua.es.pojo.UserLocationES;
import org.springframework.data.domain.Page;

/**
 * @author 西楚霸王
 * @date 2020/11/30 12:39
 */
public interface UserLocationService {
    boolean updateUserLocation(Long userId, Double longitude, Double latitude, String address);

    UserLocationES queryByUserId(Long userId);

    Page<UserLocationES> queryUserFromLocation(Double longitude, Double latitude, Double distance, Integer page, Integer pageSize);
}
